/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.bean.base;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

/**
 *
 * @author EnzoZhong
 */
@Table( "t_s_blog_bean_lan" )
public class Lan {

        @Id
        @Comment( "序列号" )
        private Integer lanId;
        @Name
        @Comment( "语言名" )
        private String lanName;
        @Column
        @Comment( "语言代号" )
        private String code;
        @Column
        @Comment( "状态" )
        private Integer state;

        public Lan () {
        }

        public String getCode () {
                return code;
        }

        public void setCode ( String code ) {
                this.code = code;
        }

        public Integer getLanId () {
                return lanId;
        }

        public void setLanId ( Integer lanId ) {
                this.lanId = lanId;
        }

        public String getLanName () {
                return lanName;
        }

        public void setLanName ( String lanName ) {
                this.lanName = lanName;
        }

        public Integer getState () {
                return state;
        }

        public void setState ( Integer state ) {
                this.state = state;
        }

        @Override
        public boolean equals ( Object obj ) {
                if ( obj == null ) {
                        return false;
                }
                if ( getClass() != obj.getClass() ) {
                        return false;
                }
                final Lan other = ( Lan ) obj;
                if ( ( this.lanName == null ) ? ( other.lanName != null ) : !this.lanName.equals( other.lanName ) ) {
                        return false;
                }
                return true;
        }

        @Override
        public int hashCode () {
                int hash = 5;
                hash = 89 * hash + ( this.lanName != null ? this.lanName.hashCode() : 0 );
                return hash;
        }

        @Override
        public String toString () {
                return "Lan{" + "lanId=" + lanId + ", lanName=" + lanName + ", code=" + code + ", state=" + state + '}';
        }
}
